package cn.yunhe.entity;

import java.io.Serializable;

public class Topic implements Serializable {
    private  int tid;
    private  String  title;
    private String  context;
    private String  ptime;
    private User user;
    private  int status=-1;

    public Topic(int tid, String title, String context, String ptime, User user, int status) {
        this.tid = tid;
        this.title = title;
        this.context = context;
        this.ptime = ptime;
        this.user = user;
        this.status = status;
    }

    public Topic() {
    }

    public int getTid() {
        return tid;
    }

    public void setTid(int tid) {
        this.tid = tid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public String getPtime() {
        return ptime;
    }

    public void setPtime(String ptime) {
        this.ptime = ptime;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
